package com.housediyadmin.events.fittingEvents
{
	import com.housediyadmin.vo.Fitting;
	
	import flash.events.Event;
	
	/**
	 * 
	 * @author yanghanbing
	 * 2010/12/15
	 */	
	public class AddFittingEvent extends Event
	{
		public static const ADD_FITTING:String = "addFitting";
		
		public var fitting:Fitting;
		public var goodsIds:Array;
		
		/**
		 *添加一个Fitting，忽略fittingID 
		 * @param type 必选参数 ADD_FITTING
		 * @param fitting：Fitting 必选参数
		 * 
		 */		
		public function AddFittingEvent(type:String, fitting:Fitting, goodsIds:Array = null)
		{
			super(type);
			this.fitting = fitting;
			this.goodsIds = goodsIds;
		}
		
		override public function clone():Event
		{
			return new AddFittingEvent(type, fitting, goodsIds);
		}
	}
}